package com.healthtop.dao;

import com.healthtop.mapper.XsDictionaryTypeMapper;
import com.healthtop.model.XsDictionaryType;
import com.healthtop.model.XsDictionaryTypeExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class XsDictionaryTypeDao {

    @Autowired
    private XsDictionaryTypeMapper xsDictionaryTypeMapper;

    public List<XsDictionaryType> selectAll() {
        XsDictionaryTypeExample example = new XsDictionaryTypeExample();
        return xsDictionaryTypeMapper.selectByExample(example);
    }

    public void insert(XsDictionaryType xsDictionaryType) {
        xsDictionaryTypeMapper.insertSelective(xsDictionaryType);
    }
}
